<div>选择的值：@string.Join(", ", selectedValues)</div>

<MduiCheckbox Switch @bind-Value="@searchable" Label="开启搜索" />
<MduiCheckbox Switch @bind-Value="@read_only" Label="只读" />
<MduiCheckbox Switch @bind-Value="@disabled" Label="禁用" />
<MduiCheckbox Switch @bind-Value="@dense" Label="紧凑型" />

<MduiPicker Searchable="@searchable" Readonly="@read_only" Disabled="@disabled" Dense="@dense" MultiSelection
    @bind-SelectedValues="@selectedValues" Items="@items" ValueFunc="i=>i" DisplayStringFunc="i=>i" MaxHeight="200px" />

@code {
    IEnumerable<string> items = ["option1", "option2", "option3", "option4", "option5", "option6"];
    IEnumerable<string> selectedValues = ["option2", "option3"];
    bool searchable;
    bool read_only;
    bool disabled;
    bool dense;
}